<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: Teacher
  Date: 2023/11/22
  Time: 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isErrorPage="true" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
</head>
<body>
<!doctype html>
<html lang="zh">
<head>
    <title>HTTP状态 500 - 内部服务器错误</title>
    <style type="text/css">
        body {
            font-family: Tahoma,Arial,sans-serif;
        }

        h1, h2, h3, b {
            color: white;
            background-color: #525D76;
        }

        h1 {
            font-size: 22px;
        }

        h2 {
            font-size: 16px;
        }

        h3 {
            font-size: 14px;
        }

        p {
            font-size: 12px;
        }

        a {
            color: black;
        }

        .line {
            height: 1px;
            background-color: #525D76;
            border: none;
        }
    </style>
</head>
<body>
<h1>HTTP状态 500 - 内部服务器错误</h1>
<hr class="line"/>
<p>
    <b>类型</b>
    异常报告
</p>
<p>
    <b>描述</b>
    服务器遇到一个意外的情况，阻止它完成请求。
</p>
<p>
    <b>例外情况</b>
</p>
<pre><%
    // 在服务器的控制台中输出堆栈消息
    exception.printStackTrace();
    StackTraceElement[] stackTrace = exception.getStackTrace();
%><%= exception.toString() %>
<%
    for (int i = 0; i < stackTrace.length; i++) {
%> at : <%= stackTrace[i] %>
<% } %>
</pre>
<p>
    <b>:注意</b>
    主要问题的全部 stack 信息可以在 server logs 里查看
</p>
<hr class="line"/>
<h3>Apache Tomcat/8.5.96</h3>
</body>
</html>

</body>
</html>
